package main
import(
	"fmt"
)

//211216划水学go
func main(){
	//字符类型的使用

	var c1 byte = 'a'
	var c2 byte = '0'

	//输出的是ascall
	fmt.Println("c1",c1)
	fmt.Println("c2",c2)

	//输出字符，格式化输出
	fmt.Printf("c1=%c c2=%c \n",c1,c2)

	//var c3 byte = '北' //constant 21271 overflows byte
	var c3 int = '北'
	fmt.Printf("c3=%c c3码值=%d \n", c3, c3)

	//给某个变量附一个数字，按照格式化输出%c,会输出该数字对应的unicode
	var c4 = 22269
	fmt.Printf("c4=%c", c4)

}